/**
 *====================================================
 * 文件名称: AbnormalEntity.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2015年11月21日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.project.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.AbnormalStateEnum;
import com.yuexunit.finance.project.entity.lexicon.AbnormalTypeEnum;
import com.yuexunit.finance.project.entity.lexicon.HandleStateEnum;

/**
 * @ClassName: AbnormalEntity
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author chenxy
 * @date 2015年11月21日 下午12:21:40
 */
@Entity
@Table(name = "FIN_ABNORMAL")
public class AbnormalEntity {

	/** 异常ID */
	@Id
	@GeneratedValue
	@Column(name = "ABNORMAL_ID")
	private Long abnormalId;

	/** 索赔单ID */
	@Column(name = "CLAIM_ID")
	private Long claimId;

	/** 融资信息ID */
	@Column(name = "FINANCE_ID")
	private Long financeId;

	/** 融资信息编号 */
	@Column(name = "FINANCE_NUMBER")
	private String financeNumber;

	/** 融资企业ID */
	@Column(name = "ENTERPRISE_ID")
	private Long enterpriseId;

	/** 融资企业名称 */
	@Column(name = "ENTERPRISE_NAME")
	private String enterpriseName;

	/** 异常单号 */
	@Column(name = "ABNORMAL_NUMBER")
	private String abnormalNumber;

	/** 发生时间 */
	@Column(name = "HAPPEN_DATE")
	private String happenDate;

	/** 发生地点 */
	@Column(name = "HAPPEN_ADDRESS")
	private String happenAddress;

	/** 紧急程度 */
	@Column(name = "URGENCY")
	private String urgency;

	/** 客户 */
	@Column(name = "CUSTOMER")
	private String customer;

	/** 是否异常费用 0:无费用/1:有费用 */
	@Column(name = "EXPENSE_STATE")
	private Boolean expenseState;

	/** 是否标识风险 0:无风险/1:有风险 */
	@Column(name = "RISK_ENABLED")
	private Boolean riskEnabled;

	/** 异常来源ID 根据异常环节(来源) 1:理货ID/2:签收ID/3:扣货ID/4:运输ID */
	@Column(name = "ABNORMAL_SOURCE_ID")
	private Long abnormalSourceId;

	/** 异常环节(来源) 0:未知/1:理货异常/2:签收异常/3:扣货异常/4:运输异常 */
	@Column(name = "ABNORMAL_TYPE")
	private AbnormalTypeEnum abnormalType;

	/** 单据类型 */
	@Column(name = "VOUCHER_TYPE")
	private String voucherType;

	/** 异常类别 0:未知/1:货损/2:丢失 */
	@Column(name = "ABNORMAL_STATE")
	private AbnormalStateEnum abnormalState;

	/** 异常量 */
	@Column(name = "QUANTITY")
	private Integer quantity;

	/** 异常单位 */
	@Column(name = "UNIT")
	private String unit;

	/** 上报时间 */
	@Column(name = "REPORT_DATE")
	private String reportDate;

	/** 上报单位 */
	@Column(name = "REPORT_DEPARTMENT")
	private String reportDepartment;

	/** 上报人 */
	@Column(name = "REPORTOR")
	private String reportor;

	/** 填报人 */
	@Column(name = "FILL")
	private String fill;

	/** 责任划分 */
	@Column(name = "BLAME")
	private String blame;

	/** 所属部门/车队 */
	@Column(name = "DEPARTMENT")
	private String department;

	/** 操作部门 */
	@Column(name = "OPERATE_DEPARTMENT")
	private String operateDepartment;

	/** 操作单位 */
	@Column(name = "OPERATE_UNIT")
	private String operateUnit;

	/** 估损费用 */
	@Column(name = "ASSESSMENT")
	private BigDecimal assessment;

	/** 牵引车号 */
	@Column(name = "TRACTOR")
	private String tractor;

	/** 挂车号 */
	@Column(name = "TRAILER")
	private String trailer;

	/** 主驾 */
	@Column(name = "MAIN_DRIVE")
	private String mainDrive;

	/** 副驾 */
	@Column(name = "COPILOT")
	private String copilot;

	/** 处理状态 0:未知/1:未处理/2:/已接受/3:调查中/4:处理完毕 */
	@Column(name = "HANDLE_STATE")
	private HandleStateEnum handleState;

	public Long getAbnormalId() {
		return abnormalId;
	}

	public void setAbnormalId(Long abnormalId) {
		this.abnormalId = abnormalId;
	}

	public Long getClaimId() {
		return claimId;
	}

	public void setClaimId(Long claimId) {
		this.claimId = claimId;
	}

	public Long getFinanceId() {
		return financeId;
	}

	public void setFinanceId(Long financeId) {
		this.financeId = financeId;
	}

	public String getFinanceNumber() {
		return financeNumber;
	}

	public void setFinanceNumber(String financeNumber) {
		this.financeNumber = financeNumber;
	}

	public String getAbnormalNumber() {
		return abnormalNumber;
	}

	public void setAbnormalNumber(String abnormalNumber) {
		this.abnormalNumber = abnormalNumber;
	}

	public String getHappenDate() {
		return happenDate;
	}

	public void setHappenDate(String happenDate) {
		this.happenDate = happenDate;
	}

	public String getHappenAddress() {
		return happenAddress;
	}

	public void setHappenAddress(String happenAddress) {
		this.happenAddress = happenAddress;
	}

	public String getUrgency() {
		return urgency;
	}

	public void setUrgency(String urgency) {
		this.urgency = urgency;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public Boolean getExpenseState() {
		return expenseState;
	}

	public void setExpenseState(Boolean expenseState) {
		this.expenseState = expenseState;
	}

	public AbnormalTypeEnum getAbnormalType() {
		return abnormalType;
	}

	public void setAbnormalType(AbnormalTypeEnum abnormalType) {
		this.abnormalType = abnormalType;
	}

	public String getVoucherType() {
		return voucherType;
	}

	public void setVoucherType(String voucherType) {
		this.voucherType = voucherType;
	}

	public AbnormalStateEnum getAbnormalState() {
		return abnormalState;
	}

	public void setAbnormalState(AbnormalStateEnum abnormalState) {
		this.abnormalState = abnormalState;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getReportDate() {
		return reportDate;
	}

	public void setReportDate(String reportDate) {
		this.reportDate = reportDate;
	}

	public String getReportDepartment() {
		return reportDepartment;
	}

	public void setReportDepartment(String reportDepartment) {
		this.reportDepartment = reportDepartment;
	}

	public String getReportor() {
		return reportor;
	}

	public void setReportor(String reportor) {
		this.reportor = reportor;
	}

	public String getFill() {
		return fill;
	}

	public void setFill(String fill) {
		this.fill = fill;
	}

	public String getBlame() {
		return blame;
	}

	public void setBlame(String blame) {
		this.blame = blame;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getOperateDepartment() {
		return operateDepartment;
	}

	public void setOperateDepartment(String operateDepartment) {
		this.operateDepartment = operateDepartment;
	}

	public String getOperateUnit() {
		return operateUnit;
	}

	public void setOperateUnit(String operateUnit) {
		this.operateUnit = operateUnit;
	}

	public BigDecimal getAssessment() {
		return assessment;
	}

	public void setAssessment(BigDecimal assessment) {
		this.assessment = assessment;
	}

	public String getTractor() {
		return tractor;
	}

	public void setTractor(String tractor) {
		this.tractor = tractor;
	}

	public String getTrailer() {
		return trailer;
	}

	public void setTrailer(String trailer) {
		this.trailer = trailer;
	}

	public String getMainDrive() {
		return mainDrive;
	}

	public void setMainDrive(String mainDrive) {
		this.mainDrive = mainDrive;
	}

	public String getCopilot() {
		return copilot;
	}

	public void setCopilot(String copilot) {
		this.copilot = copilot;
	}

	public HandleStateEnum getHandleState() {
		return handleState;
	}

	public void setHandleState(HandleStateEnum handleState) {
		this.handleState = handleState;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public Long getAbnormalSourceId() {
		return abnormalSourceId;
	}

	public void setAbnormalSourceId(Long abnormalSourceId) {
		this.abnormalSourceId = abnormalSourceId;
	}

	public Boolean getRiskEnabled() {
		return riskEnabled;
	}

	public void setRiskEnabled(Boolean riskEnabled) {
		this.riskEnabled = riskEnabled;
	}

}
